package com.ta.gulimall.coupon.dao;

import com.ta.gulimall.coupon.entity.SeckillSkuRelationEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 秒杀活动商品关联
 * 
 * @author tuao
 * @email tuaoo@gmail.com
 * @date 2022-12-04 16:25:02
 */
@Mapper
public interface SeckillSkuRelationDao extends BaseMapper<SeckillSkuRelationEntity> {

    @MapKey("promotionSessionId")
    Map<Long, SeckillSkuRelationEntity> mquerySessionGoods(@Param("") List<Long> sessionIds);
}
